print("202509191439")
-- 假设你已经获得要踢出的玩家的用户名
local playerToKickName = "mayue0827"

game.Players.PlayerAdded:Connect(function(player)
    if player.Name == playerToKickName then
        print("2请求成功 playerToKickName  :", playerToKickName)
        print("2你已被管理员移出服务器。:")
        player:Kick("你已被管理员移出服务器。")
    end
end)

-- 或者在游戏运行时查找并踢出
for _, player in ipairs(game.Players:GetPlayers()) do
    if player.Name == playerToKickName then
        print("请求成功 playerToKickName  :", playerToKickName)
        print("你已被管理员移出服务器。:")
        player:Kick("你已被管理员移出服务器。")
    end
end